package cs3343.project.family;
import javax.swing.*;

/**
 * The Class MapArea.
 */
public class MapArea {
	
	/** The map area id. */
	int mapAreaId;
	
	/** The image. */
	ImageIcon image;
	
	/** The x. */
	int x;
	
	/** The y. */
	int y;
	
	/**
	 * Instantiates a new map area.
	 *
	 * @param mapAreaId the map area id
	 * @param image the image
	 * @param x the x
	 * @param y the y
	 */
	public MapArea(int mapAreaId, ImageIcon image, int x, int y) {
		this.mapAreaId = mapAreaId;
		this.image = image;
		this.x = x;
		this.y = y;
	}

	/**
	 * Gets the map area id.
	 *
	 * @return the map area id
	 */
	public int getMapAreaId() {
		return mapAreaId;
	}

	/**
	 * Sets the map area id.
	 *
	 * @param mapAreaId the new map area id
	 */
	public void setMapAreaId(int mapAreaId) {
		this.mapAreaId = mapAreaId;
	}

	/**
	 * Gets the image.
	 *
	 * @return the image
	 */
	public ImageIcon getImage() {
		return image;
	}

	/**
	 * Sets the image.
	 *
	 * @param image the new image
	 */
	public void setImage(ImageIcon image) {
		this.image = image;
	}

	/**
	 * Gets the x.
	 *
	 * @return the x
	 */
	public int getX() {
		return x;
	}

	/**
	 * Sets the x.
	 *
	 * @param x the new x
	 */
	public void setX(int x) {
		this.x = x;
	}

	/**
	 * Gets the y.
	 *
	 * @return the y
	 */
	public int getY() {
		return y;
	}

	/**
	 * Sets the y.
	 *
	 * @param y the new y
	 */
	public void setY(int y) {
		this.y = y;
	}	
}
